package com.kaibes.core.base.tag;

public class TagContext {

    public final static TagObject initTarget(Object target) {
        return TagObjects.createObject(target);
    }
    
    public final static TagObject getTagObject(Object target) {
        return TagObjects.getObject(target);
    }
    
    public final static Object doMethod(Object target, String tag, Object[] args) throws NoSuchMethodException {
        return TagObjects.getObject(target).doMethod(tag, args);
    }
    
    public final static Object doMethod(Object target, String tag) throws NoSuchMethodException {
        return TagObjects.getObject(target).doMethod(tag);
    }
    
    public final static Object doMethod(Object target, int tag, Object[] args) throws NoSuchMethodException {
        return TagObjects.getObject(target).doMethod(tag, args);
    }
    
    public final static Object doMethod(Object target, int tag) throws NoSuchMethodException {
        return TagObjects.getObject(target).doMethod(tag);
    }
    
}
